<?php 
if(($ad->getYear() > 0) && ($ad->getDisplayYear() > 0))
{
	switch($adc->getViewObject())
	{
		/*
		case 'AdGallery':
			echo ucfirst($txt->getWord('year_production')).':&nbsp;';
			if($ad->getIsBuying() > 0) { echo $txt->getWord('from'); } ?>
			<span class="value"><?php echo $ad->getYear(); ?></span>
			<?php 
		break;*/
		default:
			?><span class="attribute"><?php
			echo ucfirst($txt->getWord('year_production'));
			if($ad->getIsBuying() > 0) { echo ' '.$txt->getWord('from'); } 
			?></span>
			<br />
			<span class="value"><?php echo $ad->getYear(); ?></span>
			<?php 
		break;
	}
}
?>
